package com.miao.elm.feign;

import com.miao.elm.utils.R;
import org.springframework.stereotype.Component;

@Component
public class FoodFeignClientCallback implements FoodFeignClient{
    @Override
    public R getFoodInfo(Integer foodId) {
        new R();
        System.out.println("Feign触发熔断降级！");
        return R.error(403, "Feign触发熔断降级！");
    }
}
